Skip to content

Failed

Scenario: Regular job creation.Scenario: Regular job creation (from org.eclipse.kapua.service.job.RunTest)

Failing for the past 1 build (Since Unstable #1 )
Took 23 ms.

Error Message

java.io.FileNotFoundException: /tmp/genie.kapua/kapua-liquibase/0.3.0/system_configuration-scope_id_index.xml (No such file or directory)

Stacktrace

java.lang.RuntimeException: java.io.FileNotFoundException: /tmp/genie.kapua/kapua-liquibase/0.3.0/system_configuration-scope_id_index.xml (No such file or directory)
Caused by: java.io.FileNotFoundException: /tmp/genie.kapua/kapua-liquibase/0.3.0/system_configuration-scope_id_index.xml (No such file or directory)

Standard Output

06:35:53.469 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM 'src/main/sql/H2/job_target_drop.sql'
06:35:53.470 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtils - Running database scripts...
06:35:53.470 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM '../../../commons/src/main/sql/H2/sys_configuration_drop.sql'
06:35:53.471 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM '../../../commons/src/main/sql/H2/sys_service_event_drop.sql'
06:35:53.471 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtils - ...database scripts done!
06:35:53.472 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM 'src/main/sql/H2/job_execution_drop.sql'
06:35:53.472 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtils - Running database scripts...
06:35:53.473 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM '../../../commons/src/main/sql/H2/sys_configuration_drop.sql'
06:35:53.473 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM '../../../commons/src/main/sql/H2/sys_service_event_drop.sql'
06:35:53.473 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtils - ...database scripts done!
06:35:53.474 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM 'src/main/sql/H2/job_drop.sql'
06:35:53.474 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM 'src/main/sql/H2/job_engine_drop.sql'
06:35:53.475 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM 'src/main/sql/H2/trigger_drop.sql'
06:35:53.475 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtils - Running database scripts...
06:35:53.475 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM '../../../commons/src/main/sql/H2/sys_configuration_drop.sql'
06:35:53.475 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM '../../../commons/src/main/sql/H2/sys_service_event_drop.sql'
06:35:53.476 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtils - ...database scripts done!
06:35:53.476 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM 'src/main/sql/H2/job_step_definition_drop.sql'
06:35:53.477 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtils - Running database scripts...
06:35:53.477 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM '../../../commons/src/main/sql/H2/sys_configuration_drop.sql'
06:35:53.478 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM '../../../commons/src/main/sql/H2/sys_service_event_drop.sql'
06:35:53.478 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtils - ...database scripts done!
06:35:53.480 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM 'src/main/sql/H2/job_step_drop.sql'
06:35:53.481 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtils - Running database scripts...
06:35:53.481 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM '../../../commons/src/main/sql/H2/sys_configuration_drop.sql'
06:35:53.481 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running script: RUNSCRIPT FROM '../../../commons/src/main/sql/H2/sys_service_event_drop.sql'
06:35:53.481 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtils - ...database scripts done!

  #Scenario: Target with a null scope ID
  #
  #    Given A null scope
  #    Given I expect the exception "KapuaIllegalNullArgumentException" with the text "scopeId"
  #    When I create a job with the name "TestJob"
  #    Then An exception was thrown
  #
  #Scenario: Delete a job target twice
  #
  #    Given I create a job with the name "TestJob"
  #    And A regular job target item
  #    When I delete the last job target in the database
  #    Given I expect the exception "KapuaEntityNotFoundException" with the text "type jobTarget"
  #    When I delete the last job target in the database
  #    Then An exception was thrown
  #
  #Scenario: Create and count multiple job targets
  #
  #    Given I create a job with the name "TestJob"
  #    And A regular job target item
  #    And A regular job target item
  #    And A regular job target item
  #    And A regular job target item
  #    When I count the targets in the current scope
  #    Then There are exactly 4 items
  #
  #Scenario: Query for the targets of a specific job
  #
  #    Given I create a job with the name "TestJob1"
  #    And A regular job target item
  #    And A regular job target item
  #    And A regular job target item
  #    And A regular job target item
  #    Given I create a job with the name "TestJob2"
  #    And A regular job target item
  #    And A regular job target item
  #    Given I create a job with the name "TestJob3"
  #    And A regular job target item
  #    And A regular job target item
  #    And A regular job target item
  #    Given I query for the job with the name "TestJob2"
  #    When I query the targets for the current job
  #    Then There are exactly 2 items
  #    Given I query for the job with the name "TestJob1"
  #    When I query the targets for the current job
  #    Then There are exactly 4 items
  #
  #Scenario: Update a job target TargetId
  #
  #    Given I create a job with the name "TestJob1"
  #    And A regular job target item
  #    When I update the job target target id
  #    Then No exception was thrown
  #    And The job target matches the creator
  Scenario: Job execution factory sanity checks        # features/JobExecutionService.feature:145
    And I test the sanity of the job execution factory # JobExecutionServiceTestSteps.testTheJobExecutionFactory()
###############################################################################
# Copyright (c) 2017, 2018 Eurotech and/or its affiliates and others
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
#     Eurotech - initial API and implementation
###############################################################################
@jobs
Feature: Job service CRUD tests
  The Job service is responsible for executing scheduled actions on various targets.
06:35:53.515 [main] INFO  org.reflections.Reflections - Reflections took 3 ms to scan 6 urls, producing 748 keys and 753 values 
06:35:53.542 [main] ERROR o.e.k.s.l.KapuaLiquibaseClient - Error while running Liquibase scripts!
java.io.FileNotFoundException: /tmp/genie.kapua/kapua-liquibase/0.3.0/system_configuration-scope_id_index.xml (No such file or directory)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
	at org.eclipse.kapua.service.liquibase.KapuaLiquibaseClient.loadResourcesStatic(KapuaLiquibaseClient.java:99)
	at org.eclipse.kapua.service.liquibase.KapuaLiquibaseClient.update(KapuaLiquibaseClient.java:67)
	at org.eclipse.kapua.service.job.targets.JobTargetsServiceTestSteps.beforeScenario(JobTargetsServiceTestSteps.java:108)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at cucumber.runtime.Utils$1.call(Utils.java:37)
	at cucumber.runtime.Timeout.timeout(Timeout.java:13)
	at cucumber.runtime.Utils.invoke(Utils.java:31)
	at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
	at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:223)
	at cucumber.runtime.Runtime.runHooks(Runtime.java:211)
	at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:201)
	at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
	at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91)
	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:93)
	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:37)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at cucumber.api.junit.Cucumber.run(Cucumber.java:98)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:386)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:323)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:143)